package com.lagou.login.controller;

import com.lagou.login.entiy.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description
 * @Author ch'ien
 * @Date 2021/4/26 16:16
 **/
@Mapper
public interface UserMapper {

    @Select("select * from user where `name` = '李四'")
    User getOneByName(String name);

    @Select("select * from user where id = #{id}")
    User getById(int i);
}
